home *** CD-ROM | disk | FTP | other *** search
/ boe.pres.k12.wv.us / boe.pres.k12.wv.us.zip / boe.pres.k12.wv.us / Utilities / Finishlynx / Disk 2 / _SETUP.2 / Group4 / example2.lss < prev    next >
Text File  |  2002-06-08  |  12KB  |  289 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script Version 2.0
  4. ;
  5. ; Copyright (c) 1995-2001 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; Notes:
  10. ;  + Empty lines and lines that start with a semicolon are ignored.
  11. ;
  12. ;  + Lines that start with two semicolons indicate a section header.
  13. ;    The current section headers and their valid group codes are:
  14. ;      ;;Initialization
  15. ;        \10 \13 \17
  16. ;      ;;TimeRunning
  17. ;      ;;TimeStopped
  18. ;      ;;TimeGun
  19. ;      ;;TimeBreak
  20. ;      ;;TimeUpdate
  21. ;      ;;TimeOfDay
  22. ;        \11 \13 \17
  23. ;      ;;Wind
  24. ;        \12 \13 \17
  25. ;      ;;ResultsHeader
  26. ;      ;;ResultsTrailer
  27. ;      ;;StartListHeader
  28. ;      ;;StartListTrailer
  29. ;        \13 \17
  30. ;      ;;Result
  31. ;      ;;StartList
  32. ;        \13 \14 \17
  33. ;      ;;MessageHeader
  34. ;      ;;MessageTrailer
  35. ;        \13 \15 \17
  36. ;      ;;Message
  37. ;        \13 \15 \16 \17
  38. ;    Sections may be omitted, appear in any order, and occur more than once.
  39. ;
  40. ;  + Format lines must begin with a one byte group code and a one byte
  41. ;    variable code. The special variable code \00 indicates that no variable
  42. ;    is being requested. If a variable is requested it will be inserted where
  43. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  44. ;    specifier in lines requesting a variable and no other printf format
  45. ;    specifiers may appear. Remember, lines requesting a variable are used as
  46. ;    a printf format string and therefore must behave as such. Lines not 
  47. ;    requesting a variable (variable code \00) can do whatever they want as
  48. ;    these lines are not fed to a printf statement.
  49. ;    The current group codes and their variable codes are:
  50. ;      \10  Initialize
  51. ;         \00  No variable
  52. ;      \11  Time
  53. ;         \00  No variable
  54. ;         \01  Formatted time
  55. ;         \02  Binary time in milliseconds (4 byte little endian integer)
  56. ;      \12  Wind
  57. ;         \00  No variable
  58. ;         \01  Formatted wind
  59. ;         \02  Binary wind in hundredths of units (4 byte little endian integer)
  60. ;      \13  Results Header/Trailer
  61. ;         \00  No variable
  62. ;         \01  OFFICIAL/UNOFFICIAL string
  63. ;         \02  Event name
  64. ;         \03  Wind
  65. ;         \04  Event number
  66. ;         \05  Round number
  67. ;         \06  Heat number
  68. ;         \07  AUTO/MANUAL start type
  69. ;         \08  Number of participants
  70. ;      \14  Result
  71. ;         \00  No variable
  72. ;         \01  Place
  73. ;         \02  Lane
  74. ;         \03  Id
  75. ;         \04  Name
  76. ;         \05  Affiliation
  77. ;         \06  Time
  78. ;         \07  Delta Time
  79. ;         \08  Cumulative Split Time
  80. ;         \09  Last Split Time
  81. ;         \0a  Laps To Go
  82. ;         \0b  License
  83. ;         \0c  ReacTime
  84. ;         \0d  Speed
  85. ;         \0e  Pace
  86. ;         \0f  Best Split Time
  87. ;      \15  Message Header/Trailer
  88. ;         \00  No variable
  89. ;      \16  Message
  90. ;         \00  No variable
  91. ;         \01  Text
  92. ;      \17  Break Time
  93. ;         \00  No variable
  94. ;         \nn  Formatted break time nn
  95. ;
  96. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  97. ;    digit. Note that h must be lowercase.
  98. ;
  99. ;  + Format lines can have the following commands embedded in them.
  100. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  101. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  102. ;     \Ui\hh  Set the 'U' value to register[hh].
  103. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  104. ;     \Xi\hh  Set the 'X' value to register[hh].
  105. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  106. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  107. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  108. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  109. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  110. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  111. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  112. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  113. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  114. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  115. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  116. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  117. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  118. ;             next {X|<eol>} characters.
  119. ;              \U\00  IDS checksum.
  120. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  121. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  122. ;              \U\03  CRC-16. register[hh] is used as the seed value
  123. ;                       and register[hh+1] is the polynomial.
  124. ;              \U\04  CRC-32. register[hh] is used as the seed value
  125. ;                       and register[hh+1] is the polynomial.
  126. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  127. ;              \U\00  Binary little-endian (Intel byte order).
  128. ;              \U\01  Binary big-endian (Motorola byte order).
  129. ;              \U\02  ASCII text right justified space padded.
  130. ;              \U\03  ASCII text right justified zero padded.
  131. ;              \U\04  ASCII text left justified space padded.
  132. ;              \U\05  ASCII text left justified zero padded.
  133. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  134. ;              \U\00  ASCII text base 10.
  135. ;              \U\01  Binary little-endian (Intel byte order).
  136. ;              \U\02  Binary big-endian (Motorola byte order).
  137. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  138. ;              \P\00  Reverse characters.
  139. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  140. ;                       is the current character position on entry and the
  141. ;                       next character position on exit.
  142. ;              \P\02  Convert characters to Daktronics AllSport format.
  143. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  144. ;             before the cursor or until the string contains X characters.
  145. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  146. ;             at the cursor or until the string contains X characters.
  147. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  148. ;             contains X characters.
  149. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  150. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  151. ;             beginning of the line if zero).
  152. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  153. ;             end of the line if zero).
  154. ;    Note that numbers 0 thru 9 can be entered directly for single character
  155. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  156. ;    '\=\01' is the same as '\=1'.
  157. ;
  158. ;  + Be very careful about whitespace in each format line. Characters other
  159. ;    than '%s' specifiers and embedded commands and values will be sent
  160. ;    exactly as they appear on the line. This means, for instance, that using
  161. ;    tabs to make a line 'look right' in you favorite editor will cause
  162. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  163. ;    spaces (probably not what you wanted).
  164. ;
  165. ; The format lines follow.
  166.  
  167. ;;Initialization
  168. ; This is sent once to initialize the scoreboard.
  169. \10\00\0d\0a*** Initialize the scoreboard ***\0d\0a
  170.  
  171. ;;TimeRunning
  172. ; This is sent approximately 10 times per second.
  173. ; Setting register[0] to 1 in a format line will cause that line and
  174. ; subsequent lines to only be sent once per second (when the second's 
  175. ; digit changes) instead of approximately 10 times per second. Setting
  176. ; register[0] to 0 will resume normal operation for remaining lines.
  177. \11\01\0dRunning time: %12.12s
  178.  
  179. ;;TimeStopped
  180. ; This is sent when the time is stopped by a beam break.
  181. \11\01\0dStopped time: %12.12s
  182.  
  183. ;;TimeGun
  184. ; This is sent when a gun signal is received.
  185. \11\01\0d\0aGun time    : %12.12s\0d\0a
  186.  
  187. ;;TimeBreak
  188. ; This is sent when a beam break is received.
  189. \11\01\0d\0aBreak time  : %12.12s\0d\0a
  190.  
  191. ;;TimeUpdate
  192. ; This is sent approximately 10 times per second.
  193. \11\01\0dUpdate time : %12.12s
  194.  
  195. ;;TimeOfDay
  196. ; This is sent when the 'Send time of day' option is checked in the
  197. ; Scoreboard pull down menu.
  198. \11\01\=0\0dTime of day: %12.12s\B4
  199.  
  200. ;;Wind
  201. ; This is sent in the time stream when a wind reading is received.
  202. \12\01\0d\0aWind        : %12.12s\0d\0a
  203.  
  204. ;;ResultsHeader
  205. ; This is sent once each time the scoreboard is updated with results. It
  206. ; is sent before any result lines are sent.
  207. \13\00*** Results Header ***\0d\0a
  208. \13\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  209. \13\02Event name         : %s\0d\0a
  210. \13\03Wind               : %s\0d\0a
  211. \13\04Event number       : %s\0d\0a
  212. \13\05Round number       : %s\0d\0a
  213. \13\06Heat number        : %s\0d\0a
  214. \13\07AUTO/MANUAL start  : %s\0d\0a
  215. \13\08Number of results  : %s\0d\0a
  216. \13\00Plc Ln  Id  Name       Affil      Time     Delta    ReacTime Cum ST   Last ST  Laps  \0d\0a
  217. \13\00--- --- --- ---------- ---------- -------- -------- -------- -------- -------- ------\0d\0a
  218.  
  219. ;;ResultsTrailer
  220. ; This is sent once each time the scoreboard is updated with results. It
  221. ; is sent after all result lines are sent.
  222. \13\00*** Results Trailer ***\0d\0a\0d\0a
  223.  
  224. ;;Result
  225. ; This is sent once for each result line displayed on the scoreboard.
  226. ; Register[0] is initialized with the index of the current result line and
  227. ; will range from 0 through PageSize - 1.
  228. \14\01%-3.3s 
  229. \14\02%-3.3s 
  230. \14\03%-3.3s 
  231. \14\04%-10.10s 
  232. \14\05%-10.10s 
  233. \14\06%-8.8s 
  234. \14\07%-8.8s 
  235. \14\0c%-8.8s 
  236. \14\08%-8.8s 
  237. \14\09%-8.8s 
  238. \14\0a%-6.6s
  239. \14\00\0d\0a
  240.  
  241. ;;StartListHeader
  242. ; This is sent once each time the scoreboard is updated with results. It
  243. ; is sent before any result lines are sent.
  244. \13\00*** Start List Header ***\0d\0a
  245. \13\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  246. \13\02Event name         : %s\0d\0a
  247. \13\03Wind               : %s\0d\0a
  248. \13\04Event number       : %s\0d\0a
  249. \13\05Round number       : %s\0d\0a
  250. \13\06Heat number        : %s\0d\0a
  251. \13\07AUTO/MANUAL start  : %s\0d\0a
  252. \13\08Number of results  : %s\0d\0a
  253. \13\00Plc Ln  Id  Name       Affil      ReacTime Cum ST   Last ST  Laps  \0d\0a
  254. \13\00--- --- --- ---------- ---------- -------- -------- -------- ------\0d\0a
  255.  
  256. ;;StartListTrailer
  257. ; This is sent once each time the scoreboard is updated with results. It
  258. ; is sent after all result lines are sent.
  259. \13\00*** Start List Trailer ***\0d\0a\0d\0a
  260.  
  261. ;;StartList
  262. ; This is sent once for each result line displayed on the scoreboard.
  263. \14\01%-3.3s 
  264. \14\02%-3.3s 
  265. \14\03%-3.3s 
  266. \14\04%-10.10s 
  267. \14\05%-10.10s 
  268. \14\0c%-8.8s 
  269. \14\08%-8.8s 
  270. \14\09%-8.8s 
  271. \14\0a%-6.6s
  272. \14\00\0d\0a
  273.  
  274. ;;MessageHeader
  275. ; This is sent once each time the scoreboard is updated with the message. It
  276. ; is sent before any message lines are sent.
  277. \15\00Message Header\0d\0a
  278.  
  279. ;;MessageTrailer
  280. ; This is sent once each time the scoreboard is updated with the message. It
  281. ; is sent after all message lines are sent.
  282. \15\00Message Trailer\0d\0a
  283.  
  284. ;;Message
  285. ; This is sent once for each message line displayed on the scoreboard.
  286. ; Register[0] is initialized with the index of the current message line and
  287. ; will range from 0 through <number of lines> - 1.
  288. \16\01%s\0d\0a
  289.